﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using DAL;

namespace UI
{
    public partial class tintuc : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //SqlParameter[] ThamSo = new SqlParameter[]
            //{
            //new SqlParameter("UserName",tendn),
            //new SqlParameter("Password",pass),
            //};

            // get user by TenDN and MatKhauDN
            DataTable dt = DBConnection.getALL("sp_getAllTinTuc");
            lbtieude.Text = dt.Rows[0]["TieuDe"].ToString();
            lbtomluoc.Text = dt.Rows[0]["TomLuoc"].ToString();
            lbnoidung.Text = dt.Rows[0]["NoiDung"].ToString();
            Image1.ImageUrl = "~/images/" + dt.Rows[0]["LinkImage"].ToString();
            lbtacgia.Text = dt.Rows[0]["TacGia"].ToString();
        }
    }
}